package cn.njxzc.demo.basm;

/**
 * Created by xujia_000 on 3/31/2017.
 */
public class Bank {
    private Account[] accounts = new Account[40];//Several bank accounts
    private long accountnumber;

    Bank() {

    }

    /**
     * method Name :
     *
     * @params：
     * @return:
     * @author: xujia_000
     * Creation Date : 2017-04-01 12:20 AM
     * version :
     * Description:
     */
    protected Account openAccount() {
        Account account = null;

        return account;
    }


    protected Boolean VerifyAccount() {


        return Boolean.TRUE;
    }

    /**
     * overload
     *
     * @param accounts
     * @return
     */
    protected Boolean VerifyAccount(int accounts) {

        return Boolean.TRUE;

    }

    protected void saveAccountInfo() {

    }

    //deposit();
    //withdraw();
    public Account[] getAccounts() {
        return accounts;
    }

    public long getAccountnumber() {
        return accountnumber;
    }

    public void setAccounts(Account[] accounts) {
        this.accounts = accounts;
    }

    public void setAccountnumber(long accountnumber) {
        this.accountnumber = accountnumber;
    }
}
